import request from '@/utils/request'

export function getStatisticSummary(params:any){
    return request({
      url: "/sale/statistic/statisticSummary",
      method: 'get',
      params
    })
}

export function getStatisticSku(params:any){
    return request({
      url: `/sale/statistic/statisticSkus/${params.pageNum}/${params.pageSize}`,
      method: 'get',
      params: { orderDtFrom: params.orderDtFrom, orderDtTo: params.orderDtTo }
    })
}

export function getStatisticClient(params:any){
  return request({
    url: `/sale/statistic/statisticClient/${params.pageNum}/${params.pageSize}`,
    method: 'get',
    params: { orderDtFrom: params.orderDtFrom, orderDtTo: params.orderDtTo, clientName: params.clientName }
  })
}